MailPoet\Models\Subscriber B

Total Complexity 100
Dependencies 10
Dependents 57
Total lines 673
Lines of code 553
Logical lines of code 192
Comment lines 37
Methods 44
Properties 2

Methods 44

Method Rating Maintainability Complexity Lines of code
createOrUpdate()
B
41 18 56
updateMultiple()
A
43 6 54
filterBy()
S
56 6 18
filters()
S
45 4 44
setRequiredFieldsDefaultValues()
S
57 4 16
findOne()
S
65 4 8
withCustomFields()
S
59 3 14
filterWithCustomFields()
S
51 2 29
filterWithCustomFieldsForExport()
S
52 2 27
saveCustomFields()
S
61 3 12
groupBy()
S
65 3 9
delete()
S
67 3 8
trash()
S
69 3 7
extractCustomFieldsFromFromObject()
S
63 3 10
getCustomField()
S
63 2 11
filterOutReservedColumns()
S
57 1 20
getWooCommerceSegmentSubscriber()
S
58 1 16
search()
S
65 2 9
getUnconfirmedData()
S
66 2 8
getCurrentWPUser()
S
66 2 8
getSubscribedInSegments()
S
60 1 15
extractSubscribersIds()
S
69 2 7
getAllSegmentNamesWithStatus()
S
60 1 15
setUnconfirmedData()
S
69 2 7
createMultiple()
S
60 1 14
withoutSegments()
S
63 1 12
inactive()
S
73 1 5
__construct()
S
68 1 7
findSubscribersInSegments()
S
73 1 5
unconfirmed()
S
73 1 5
bounced()
S
73 1 5
withSubscriptions()
S
73 1 5
unsubscribed()
S
73 1 5
subscribed()
S
73 1 5
getInactiveSubscribersCount()
S
73 1 5
getTotalSubscribers()
S
67 1 9
setCustomField()
S
69 1 7
withSegments()
S
76 1 4
customFields()
S
67 1 8
isWooCommerceUser()
S
81 1 3
isWPUser()
S
81 1 3
save()
S
76 1 4
segments()
S
66 1 9
subscribe()
S
71 1 5